package com.atguigu.tingshu.account.api;

import com.atguigu.tingshu.account.service.RechargeInfoService;
import com.atguigu.tingshu.common.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Tag(name = "充值管理")
@RestController
@RequestMapping("api/account")
@SuppressWarnings({"all"})
public class RechargeInfoApiController {

    @Autowired
    private RechargeInfoService rechargeInfoService;

    @Operation(summary = "在线付款成功后-更新充值状态&账户余额及新增账户变动日志")
    @GetMapping("/rechargeInfo/rechargePaySuccess/{orderNo}")
    public Result<?> rechargePaySuccess(@PathVariable String orderNo) {
        rechargeInfoService.rechargePaySuccess(orderNo);
        return Result.ok();
    }

}

